#ifndef _Coin_h_
#define _Coin_h_
#include<windows.h>
#include"Sprite.h"
#include"StaticObjects.h"
class CCoin
{
	int kind;
	
	int y;
	int sy;
	float vy;
	int width;
	int height;
	bool isshow;
	bool isactive;
	bool isover;
	int last_time;
	CSprite *coin;
public:
	int x;
	CCoin(int _kind,int _x,int _y,int _width,int _height);
	~CCoin();
	int CollisionWithMario(RECT marioRect);	
	void CollisionWithStaticObject(CStaticObjects *StaticObject,RECT screen);
	void Render(LPD3DXSPRITE sprite,LPDIRECT3DTEXTURE9 image,int time,int xcamara);
};
#endif